import request from '../../utils/request';
/**
 * 删除单页
 */
export function remove(pageId) {
  return request(`${is.CONST.urls.page}?page_id=${pageId}`, {
    method: 'DELETE',
  });
}

/**
 * 更新单页数据
 */
export function update(values) {
  return request(is.CONST.urls.page, {
    method: 'POST',
    body: JSON.stringify(values),
  });
}
